package com.soma.game.enums;

import java.io.Serializable;

/**
 * @author: ivan.yao<haif.yao@gmail.com>
 * @date: 17/3/8.
 */
public class EnumValue implements Serializable{


    private String name;
    private String value;

    public EnumValue() {
    }

    public EnumValue(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    /**
     * 枚举序列化会缓存一次,key值是当前返回,所以返回name
     *
     * @return
     */
    @Override
    public String toString() {
        return this.name;
    }
}
